package com.liusand.user.service;

import com.liusand.entity.dto.PhoneAndVerifyCodeDto;
import com.liusand.entity.dto.TwoPhoneDto;
import com.liusand.entity.dto.UserDto;
import com.liusand.entity.pojo.User;
import com.liusand.entity.vo.ListUserVo;
import com.liusand.entity.vo.LoginVo;
import com.liusand.entity.vo.PageInfo;
import com.liusand.entity.vo.UserVo;

import java.util.List;

/**
 * @author :liusha
 * packageName :com.liusand.user.service
 * fileName :UserService
 * creationTime :2022/12/10 21:23
 */
public interface UserService {
    boolean sendSms(PhoneAndVerifyCodeDto phone);

    LoginVo login(PhoneAndVerifyCodeDto phoneAndCode);

    boolean modifyInfo(UserDto userDto);

    PageInfo<ListUserVo> getList(Integer type, String value, Integer page, Integer pageSize);

    Long countGetList(Integer type, String value);

    boolean relationHandle(Integer type, String toId);

    User getInfo();

    List<UserVo> getVisitedUserVo(Integer page, Integer pageSize);

    boolean verfyPhone(PhoneAndVerifyCodeDto phoneAndCode);

    boolean updatePhone(TwoPhoneDto twoPhoneDto);

    List<User> getUserInfo(List<String> userIds);
}
